﻿@{
                /**/

                ViewBag.Title = "Index";
                Layout = "~/Views/Shared/_Index.cshtml";
}
<style>
    input[type=date]::-webkit-inner-spin-button {
        visibility: hidden;
    }
</style>
<script>
    $(function () {
        gridList();
        $("#gridList").jqGrid('setLabel', 'rn', '序号', { 'text-align': 'center', 'vertical-align': 'middle' });
    })
    function gridList() {
        var $gridList = $("#gridList");
        $gridList.dataGrid({
            url: "/Gas/FaceRecord/GetGridJson",
            height: $(window).height()-150,
            postData: { 'IDNumber': $.request("IDNumber"),'StartDate': $.request("StartDate"), 'EndDate': $.request("EndDate"), 'txtResult': '已刷卡'},
            colModel: [
                { label: "主键", name: "F_Id", hidden: true, key: true },
                { label: '姓名', name: 'RName', width: 50, align: 'left' },
                { label: '身份证号', name: 'IDNumber', width: 150, align: 'left' },
                { label: '就餐时间', name: 'RecordTime', width: 150, align: 'left' },
                { label: '满意度', name: 'Satisfaction', width: 150, align: 'left' },
                { label: '是否刷卡', name: 'Result', width: 150, align: 'left' },
                { label: '联系方式', name: 'Telephone', width: 150, align: 'left' },
            ],
            pager: "#gridPager",
            sortname: 'RecordTime desc',
            viewrecords: true,
            prmNames: {}
        });
    }
</script>

<div class="topPanel">
    <div class="toolbar">
        <div class="btn-group">
            <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
        </div>
        <div class="btn-group">
        </div>
        <div class="operate">
            <a href="javascript:;" class="close"></a>
        </div>
        <script>$('.toolbar').authorizeButton()</script>
    </div>
</div>
<div class="gridPanel">
    <table id="gridList"></table>
    <div id="gridPager"></div>
</div>
